From: Jasper St. Pierre Date: Mon, 20 May 2013 17:31:43 +0000 (-0400) Subject: messageTray: Don't hide the tray for urgent notifications X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4148 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d1c54f55e64a5d83fe1ab78b3d926246f2eb0317;p=gnome-shell.git messageTray: Don't hide the tray for urgent notifications The tray should never close on its own, without the user's input. https://bugzilla.gnome.org/show_bug.cgi?id=700639 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 635ee2677..147f8cf77 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2231,11 +2231,7 @@ const MessageTray = new Lang.Class({ this._ensureNotificationFocused(); } - let notificationsVisible = this._notificationState != State.HIDDEN; - let notificationsDone = !notificationsVisible && !notificationsPending; - - let mustHideTray = ((notificationsPending && notificationUrgent) - || notificationsVisible || !Main.sessionMode.hasNotifications); + let mustHideTray = this._notificationState != State.HIDDEN || !Main.sessionMode.hasNotifications; // Summary notification let haveClickedSummaryItem = this._clickedSummaryItem != null;